package Wangcache

//在这里抽象出两个接口，PeerPicker的PickPeer()方法用于根据传入的key选择响应的节点
type PeerPicker interface {
	PickPeer(key string)(peer PeerGetter,ok bool)
}

//接口PeerGetter的Get()方法用于从对应group查找缓存值。PeerGetter就对应于上述流程中的HTTP客户
type PeerGetter interface {
	Get(group string,key string)([]byte,error)
}
